home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-029 dr solomon / 1.ima / FRIDAY.BAT < prev    next >
DOS Batch File  |  1993-01-27  |  842b  |  23 lines

  1. Rem This batch file shows you how to make one thing happen on
  2. Rem Fridays, and something else on others days of the week.
  3. Rem you can use if for controlling the running of Toolkit programs
  4. TkUtil weekday
  5. IF ERRORLEVEL = 7 GOTO notfriday
  6. IF ERRORLEVEL = 6 GOTO notfriday
  7. IF ERRORLEVEL = 5 GOTO friday
  8. IF ERRORLEVEL = 4 GOTO notfriday
  9. IF ERRORLEVEL = 3 GOTO notfriday
  10. IF ERRORLEVEL = 2 GOTO notfriday
  11. IF ERRORLEVEL = 1 GOTO notfriday
  12. IF ERRORLEVEL = 0 GOTO notfriday
  13. :notfriday
  14. Rem Today is not friday. Run the non-friday programs now.
  15. Rem Non-Friday programs, if any, could go here.
  16. Rem Remember that if you call another batch file, use "CALL BATCHFILE"
  17. GOTO EXIT1
  18. :friday
  19. Rem Today is friday. Run the Friday programs now; for example:
  20. Findvirus c:
  21. Rem And here you can test the Errorlevel, as in the FV.BAT file.
  22. :EXIT1
  23.